package com.example.a2205_fx.live;

import androidx.lifecycle.MutableLiveData;

import com.example.a2205_fx.base.BaseViewModel;
import com.example.a2205_fx.entity.GiftEntity;
import com.example.a2205_fx.entity.VideoEntity;

public class LiveViewModel extends BaseViewModel<LiveRepo> {
    @Override
    protected LiveRepo createRepo() {
        return new LiveRepo();
    }
    public MutableLiveData<VideoEntity> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();
    public void video(int page,int size){
        repo.video(page,size,success,fail);
    }

    public MutableLiveData<GiftEntity> giftSuccess = new MutableLiveData<>();
    public MutableLiveData<String> giftFail = new MutableLiveData<>();
    public void gift(){
        repo.gift(giftSuccess,giftFail);
    }
}
